package com.exercise.v2;


public class ExerciseSystem {

    public static void main(String[] args) {
        System.out.println("========================================");
        System.out.println("      数学习题生成系统 v2.0");
        System.out.println("========================================\n");
        Exercise additionExercise = new Exercise("加法练习（50道）");
        Exercise subtractionExercise = new Exercise("减法练习（50道）");
        Exercise mixedExercise = new Exercise("混合练习（50道）");
        additionExercise.generateAdditionExercises(50, 1, 100);
        subtractionExercise.generateSubtractionExercises(50, 1, 100);
        mixedExercise.generateMixedExercises(50, 1, 100);
        System.out.println(additionExercise.formatDisplay());
        System.out.println();
        System.out.println(subtractionExercise.formatDisplay());
        System.out.println();
        System.out.println(mixedExercise.formatDisplay());
        System.out.println();
        System.out.println("========== 加法练习（不含答案） ==========");
        System.out.println(additionExercise.formatDisplayQuestions());
        System.out.println();
        System.out.println("========== 减法练习（不含答案） ==========");
        System.out.println(subtractionExercise.formatDisplayQuestions());
        System.out.println();
        System.out.println("========== 混合练习（不含答案） ==========");
        System.out.println(mixedExercise.formatDisplayQuestions());

        System.out.println("\n========================================");
        System.out.println("      习题生成完成！");
        System.out.println("========================================");
    }
}

